package com.maikang.exammall.repository;

import com.maikang.exammall.entity.Comment;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Slice;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;


@Repository
public interface CommentRepository extends BaseRepository<Comment, Long>, JpaSpecificationExecutor<Comment> {

    Slice<Comment> findByPkgIdOrderByCreatedDateDesc(Long pkgId, Pageable pageable);

}
